package com.example.yls.myapplication;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.MediaController;
import android.widget.VideoView;

public class MainActivity extends AppCompatActivity {

    private VideoView videoView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        this.setTitle("垃圾柱子");
        videoView=findViewById(R.id.myFamily);
        videoView.setVideoPath("/mnt/shared/Other/family.mp4");
        videoView.setMediaController(new MediaController(MainActivity.this));
        videoView.start();


    }
}
